Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(core,utils,devtools): add dev methods in store #717

Merged
merged 3 commits into from
Sep 18, 2021

Conversation

dai-shi
Copy link
Member

@dai-shi dai-shi commented Sep 17, 2021

This simplifies scope container a lot. Also, this fixes memory leak issue in DEV.

@dai-shi dai-shi requested a review from Thisen September 17, 2021 15:30
@vercel
Copy link

vercel bot commented Sep 17, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pmndrs/jotai/BGJzCgLsiHK7FmQKBYbzsUJo2gXf
✅ Preview: https://jotai-git-reafactore-corestore-for-dev-pmndrs.vercel.app

const store = createStore(initialValues)
return [store] as const
export type ScopeContainer = {
s: Store
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping this a wrapper object, so that we can add some more properties in the future.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 17, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit c02de09:

Sandbox Source
React Configuration
React Typescript Configuration
React Browserify Configuration
React Snowpack Configuration
Next.js Configuration
Next.js with custom Babel config Configuration
React with custom Babel config Configuration

@dai-shi dai-shi marked this pull request as ready for review September 17, 2021 23:32
Copy link
Member Author

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self-reviewed. oh, i'm so happy to fix the state listener behavior. merging this.

@dai-shi dai-shi merged commit b98f865 into main Sep 18, 2021
@dai-shi dai-shi deleted the reafactore/core/store-for-dev branch September 18, 2021 23:40
@dai-shi
Copy link
Member Author

dai-shi commented Sep 18, 2021

957ad82 forgot to update size snapshot. 🤦‍♂️ (yeah, let's use a github action for it.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant